//
// Created by sgyt on 2020/3/7.
//
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
void handle(int signo)
{
    printf("Handle SIGINT Start\n");
}

int main(int argc,char *argv[])
{

    signal(SIGINT,handle);
    psignal(SIGINT,"SIGINT error");
    printf("......................\n");
    char *sigErr=strsignal(SIGINT);
    printf("%s\n",sigErr);
    sleep(6);
    return 0;
}
